package beanstao.util.type.base;

import java.util.Map;

import beanstao.util.Util;
import beanstao.util.exception.technical.util.reflect.FailToCastObjectException;
import beanstao.util.type.Castor;

@SuppressWarnings({ "unchecked", "rawtypes" })
public class Object2Map extends Castor<Object, Map>
{

	@Override
	public Map cast(Object src, Class<?> toType, String... args) throws FailToCastObjectException
	{
		return Util.obj2map(src, (Class<? extends Map>) ((Class<? extends Map>) toType));
	}

}
